﻿using Kingdee.BOS;
using Kingdee.BOS.JSON;
using Kingdee.BOS.Orm.DataEntity;
using Kingdee.BOS.ServiceFacade.KDServiceClient;
using Kingdee.BOS.Util;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SD.MSXZ.K3.ServiceFacade.KDServiceClient
{
   public class MSXZClientProxy: BaseServiceProxy
    {
        protected override string ServiceName
        {
            get
            {
                return "SD.MSXZ.K3.ServiceFacade.ServicesStub.MSXZService";
            }
        }
        public bool CheckK3CloudLogin()
        {
            var bK3CloudLogin = false;
            try
            {
                bK3CloudLogin = base.ExecuteService<bool>("CheckK3CloudLogin");
            }
            catch { }

            return bK3CloudLogin;
        }
        public DynamicObjectCollection ExecuteDynamicObject(string strSQL, CommandType cmdType, List<SqlParam> paramList)
        {
            return base.ExecuteService<DynamicObjectCollection>("ExecuteDynamicObject", new object[]
            {
                strSQL,cmdType,paramList
            });
        }
        public Kingdee.BOS.ServiceFacade.KDServiceEntity.ResultInfo<JSONObject> BySettleGetReceivableAmount(string lSettleOrgIds, long lSettleCustomerId, long lCurrencyId)
        {
            return base.ExecuteService<Kingdee.BOS.ServiceFacade.KDServiceEntity.ResultInfo<JSONObject>>("BySettleGetReceivableAmount", new object[]
          {
                lSettleOrgIds,lSettleCustomerId,lCurrencyId
          });
        }
        // public Kingdee.BOS.ServiceFacade.KDServiceEntity.ResultInfo<JSONObject> SZGDSaveBill(string formId, JSONObject data)
        // {
        //     return base.ExecuteService<Kingdee.BOS.ServiceFacade.KDServiceEntity.ResultInfo<JSONObject>>("SZGDSaveBill", new object[]
        //{
        //         formId,data
        //});
        // }
        public Kingdee.BOS.ServiceFacade.KDServiceEntity.ResultInfo<object> SZGDPushSaveBill(string formId, JSONObject data)
        {
            return base.ExecuteService<Kingdee.BOS.ServiceFacade.KDServiceEntity.ResultInfo<object>>("SZGDPushSaveBill", new object[] { formId, data });
        }
        public Kingdee.BOS.ServiceFacade.KDServiceEntity.ResultInfo<object> SZGDReviseSaveSubmitBill(string formId, JSONObject data)
        {
            return base.ExecuteService<Kingdee.BOS.ServiceFacade.KDServiceEntity.ResultInfo<object>>("SZGDReviseSaveSubmitBill", new object[] { formId, data });
        }
        public Kingdee.BOS.ServiceFacade.KDServiceEntity.ResultInfo<JSONObject> SZGDNewSaveSubmitBill(string formId, JSONObject data)
        {
            return base.ExecuteService<Kingdee.BOS.ServiceFacade.KDServiceEntity.ResultInfo<JSONObject>>("SZGDNewSaveSubmitBill", new object[]
            {
                formId, data
            });
        }

        public Kingdee.BOS.ServiceFacade.KDServiceEntity.ResultInfo<JSONObject> MSXZSaveBill(string formId, JSONObject data)
        {
            return base.ExecuteService<Kingdee.BOS.ServiceFacade.KDServiceEntity.ResultInfo<JSONObject>>("MSXZSaveBill", new object[]
          {
                formId,data
          });
        }
    }
}
